/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.OCPcompliance.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.OCPcompliance.AdvancedBoxService;
import za.ac.cput.OCPcompliance.BoxService;
import za.ac.cput.OCPcompliance.impl.AdvancedBoxesImpl;
import za.ac.cput.OCPcompliance.impl.BoxServiceImpl;

/**
 *
 * @author Enkosi
 */
@Configurable
public class Config {
    @Bean(name="boxService")
    public BoxService calcPerimeter(){
        return new BoxServiceImpl();
    }
    @Bean
    public AdvancedBoxService calcArea(){
        return new AdvancedBoxesImpl();
    }
}
